package com.xxljob.demo.dao;

import com.xxljob.demo.core.model.XxlJobGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author：YH
 * @Description：
 * @Date:Created in 2022/5/19 20:51
 */
@Mapper
public interface XxlJobGroupDao {

    /**
     * @Description:所有的执行器管理
     **/
    List<XxlJobGroup> findAll();

    /**
     * @Description:按照注册类型查找执行器
     **/
    List<XxlJobGroup> findByAddressType(@Param("addressType") int addressType);


    public int update(XxlJobGroup xxlJobGroup);

    /**
     * @Description:按照执行器主键ID查找
     **/
    public XxlJobGroup load(@Param("id") int id);

}
